package com.woniuxy.third.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.third.entity.*;
import com.woniuxy.third.model.BasePageInfo;
import com.woniuxy.third.model.CourseQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CourseService {

    public Course findCourseByid(int id);

    public List<Course> findAllCourse();

    public boolean addCourse(Course course);

    public List<Chapter> findChaptersByCourseId(int id);

    public Course findCourseByUser(User user);

    public int updateCourse(Course course);

    public PageInfo<Course> getCourseFrontlist(CourseQuery var1);

    public List<Course> findCourseByUid(int uid);

    List<Course> findCollectionCourseByUid(int uid);

    List<Course> findCourseBytid(int id);

    Course findCourseByName(String name,int id);

    public List<Section> findSectionsByChaptersId(int chapterid);

    public List<Reference> findReferencesByCourceId(int id);

    public Assessment findAssessmentById(int id);
}
